package com.innodata.riskEngine.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author liboshuai
 * @Date 2023/11/8 0:06
 */
@Data
@ApiModel("压测请求对象")
public class LoadTestReq implements Serializable {

    private static final long serialVersionUID = 691881769783688015L;

    @ApiModelProperty(value = "指定一秒生成多少数据", required = true, example = "1")
    private Integer numTasksPerSecond;
    @ApiModelProperty(value = "指定总运行时间（单位秒）", required = true, example = "600")
    private Long totalRunTimeSeconds;
    @ApiModelProperty(value = "是否启动Mock Flink计算", required = true, example = "false")
    private Boolean isMockFlink;
    @ApiModelProperty(value = "银行种类数量: 最小为1时，bank=6100。最大为3，分别为6100、0560、0541", required = true, example = "1")
    private Integer bankSize;
    @ApiModelProperty(value = "渠道种类数量：最小为1时，channel=game。最大为3，分别为game、huajifen、mall", required = true, example = "1")
    private Integer channelSize;
    @ApiModelProperty(value = "用户种类数量：最小为1时，userId=userId-1。最多为int上限，userId后缀累加到数字", required = true, example = "1")
    private Integer userSize;
    @ApiModelProperty(value = "抽奖数量种类数量：最小为1时，lotteryNumber=1L。最多为4，分别为null、0、1、2", required = true, example = "1")
    private Integer lotteryNumberSize;
}

